SqlPackage is a command-line utility that automates the database development tasks by exposing some of the public Data-Tier Application Framework (DacFx) APIs.
Export a slice of a SQL Server database into a single SQLite file, and import it back.